<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<a href="javascript:;" id="add">增加</a>
	<a href="javascript:;" id="update">修改</a>
	<a href="javascript:;" data-id="231" id="delete">删除</a>

</body>
</html>
<script src="jQuery/jquery-3.4.1.js"></script>
<script>
	$(document).ready(function() {

		$('#delete').on('click', function() {
			if (confirm("你确定要删除吗？")) {
				var $this = $(this);
				var id = $this.data('id');
				$.ajax({
					url : 'test/' + id,
					type : 'delete',
					success : function() {

					}
				});
			}
		})
	});
</script>